import { IStorage } from "./i-storage";
import { MiniStorage } from './mini-storage'

export class Storage {
  static readonly DEFAULT_KEY: string = '__d';

  static default(): IStorage {
      return new MiniStorage(Storage.DEFAULT_KEY);
  }

  static fromNs(namespace: string): IStorage {
    return new MiniStorage(namespace);
  }

  static clear(): boolean {
    return MiniStorage.clearAll();
  }
}

